<?php
/**
 * Created by PhpStorm.
 * User: mf
 * Date: 2017/9/11
 * Time: 16:32
 */
namespace app\admin\validate;

class Planbuy extends Base
{
    //添加商品到产品采购计划表
    public static function addProductToPlanBuy()
    {
        return [
            'rule' => [
                'productID' => 'require',
                'number' => 'require',
                'price' => 'require',
                'totalPrice' => 'require'
            ],
            'msg' => [
                'productID.require' => '请选择要添加的商品',
                'number.require' => '请选择产品数量',
                'price.require' => '产品单价不能为空',
                'totalPrice.require' => '产品总价不能为空'
            ]
        ];
    }
}